package com.ruoyi.index.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 发布信息对象 fh_index_postinfo
 * 
 * @author ruoyi
 * @date 2024-11-12
 */
@ApiModel(value = "FhIndexPostinfo",description = "发布信息实体")
public class FhIndexPostinfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户名 */
    @ApiModelProperty("用户名")
    @Excel(name = "用户名")
    private String userName;

    /** 用户头像 */
    @ApiModelProperty("用户头像")
    @Excel(name = "用户头像")
    private String userImage;

    /** 用户位置 */
    @ApiModelProperty("用户位置")
    @Excel(name = "用户位置")
    private String userLocation;

    /** 经度 */
    @ApiModelProperty("经度")
    @Excel(name = "经度")
    private String longitude;

    /** 纬度 */
    @ApiModelProperty("纬度")
    @Excel(name = "纬度")
    private String latitude;

    /** 发布时间 */
    @ApiModelProperty("发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date postTime;

    /** 渔获图片 */
    @ApiModelProperty("渔获图片列表")
    @Excel(name = "渔获图片")
    private String postImages;

    /** 渔获id */
    @ApiModelProperty("渔获ids")
    @Excel(name = "渔获ids")
    private String fishIds;

    /** 热点词 */
    @Excel(name = "热点词")
    private String hotWords;

    /** 发布信息 */
    @ApiModelProperty("发布信息")
    @Excel(name = "发布信息")
    private String postText;

    /** 点赞数 */
    @ApiModelProperty("点赞数")
    @Excel(name = "点赞数")
    private Long likes;

    /** 评论数 */
    @ApiModelProperty("评论数")
    @Excel(name = "评论数")
    private Long comments;

    /** 转发数 */
    @ApiModelProperty("转发数")
    @Excel(name = "转发数")
    private Long retweets;

    /** 权重 */
    @Excel(name = "权重")
    private String weight;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date crateTime;

    @Override
    public String toString() {
        return "FhIndexPostinfo{" +
                "id=" + id +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userImage='" + userImage + '\'' +
                ", userLocation='" + userLocation + '\'' +
                ", longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", postTime=" + postTime +
                ", postImages='" + postImages + '\'' +
                ", fishIds=" + fishIds +
                ", hotWords='" + hotWords + '\'' +
                ", postText='" + postText + '\'' +
                ", likes=" + likes +
                ", comments=" + comments +
                ", retweets=" + retweets +
                ", weight='" + weight + '\'' +
                ", status='" + status + '\'' +
                ", crateTime=" + crateTime +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserImage() {
        return userImage;
    }

    public void setUserImage(String userImage) {
        this.userImage = userImage;
    }

    public String getUserLocation() {
        return userLocation;
    }

    public void setUserLocation(String userLocation) {
        this.userLocation = userLocation;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public Date getPostTime() {
        return postTime;
    }

    public void setPostTime(Date postTime) {
        this.postTime = postTime;
    }

    public String getPostImages() {
        return postImages;
    }

    public void setPostImages(String postImages) {
        this.postImages = postImages;
    }

    public String getFishIds() {
        return fishIds;
    }

    public void setFishIds(String fishIds) {
        this.fishIds = fishIds;
    }

    public String getHotWords() {
        return hotWords;
    }

    public void setHotWords(String hotWords) {
        this.hotWords = hotWords;
    }

    public String getPostText() {
        return postText;
    }

    public void setPostText(String postText) {
        this.postText = postText;
    }

    public Long getLikes() {
        return likes;
    }

    public void setLikes(Long likes) {
        this.likes = likes;
    }

    public Long getComments() {
        return comments;
    }

    public void setComments(Long comments) {
        this.comments = comments;
    }

    public Long getRetweets() {
        return retweets;
    }

    public void setRetweets(Long retweets) {
        this.retweets = retweets;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCrateTime() {
        return crateTime;
    }

    public void setCrateTime(Date crateTime) {
        this.crateTime = crateTime;
    }

    public FhIndexPostinfo() {
    }

    public FhIndexPostinfo(Long id, Long userId, String userName, String userImage, String userLocation, String longitude, String latitude, Date postTime, String postImages, String fishIds, String hotWords, String postText, Long likes, Long comments, Long retweets, String weight, String status, Date crateTime) {
        this.id = id;
        this.userId = userId;
        this.userName = userName;
        this.userImage = userImage;
        this.userLocation = userLocation;
        this.longitude = longitude;
        this.latitude = latitude;
        this.postTime = postTime;
        this.postImages = postImages;
        this.fishIds = fishIds;
        this.hotWords = hotWords;
        this.postText = postText;
        this.likes = likes;
        this.comments = comments;
        this.retweets = retweets;
        this.weight = weight;
        this.status = status;
        this.crateTime = crateTime;
    }
}
